<%@ page language="java" contentType="text/html;charset=utf-8"%>
<!doctype html>
<!--[if lt IE 7]><html lang="en-CA" class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html lang="en-CA" class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html lang="en-CA" class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!-->
<html lang="en-CA" class="no-js">
<!--<![endif]-->
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>Guhappy</title>
	<meta name="description" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<%
		String path = request.getContextPath();
		String basePath = request.getScheme() + "://"
				+ request.getServerName() + ":" + request.getServerPort()
				+ path + "/";
	%>
	<base href="<%=basePath%>">
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/header.css" rel="stylesheet">
	<link href="css/common.css" rel="stylesheet">
	<style type="text/css">
		textarea {
			scrollbar-base-color: #55AA55;
			scrollbar-arrow-color: white;
		}
		
		label {
			display: block;
			padding-left: 25px;
			text-indent: -25px;
		}
		input {
			width: 23px;
			height: 23px;
			padding: 0;
			margin:0;
			vertical-align: bottom;
			position: relative;
			top: -1px;
			*overflow: hidden;
		}
	</style>
	</style>
</head>
<body>
	<jsp:include page="header.jsp" />
	<div class="row" style="margin-top:80px">
		<div class="col-md-8 col-md-offset-2">
			<textarea rows="30" class="field col-md-12" id="licenseArea" readonly="readonly">
		Disclaimer
This sample legal document has been made available by MaRS Discovery District for informational purposes only and does not constitute advertising, a solicitation, or legal advice. Neither the transmission of this sample legal document nor the transmission of any information contained in this website is intended to create, and receipt hereof or thereof does not constitute formation of, a lawyer-client relationship. Internet subscribers and online readers should not rely upon this sample legal document or the information contained in this website for any purpose without seeking legal advice from a qualified lawyer practicing in the reader’s province.

The information contained in this website is provided only as general information and may or may not reflect the most current legal developments; accordingly, information on this website is not promised or guaranteed to be correct or complete. MaRS Discovery District expressly disclaims all liability in respect to actions taken or not taken based on any or all the contents of this website.
Disclaimer
This sample legal document has been made available by MaRS Discovery District for informational purposes only and does not constitute advertising, a solicitation, or legal advice. Neither the transmission of this sample legal document nor the transmission of any information contained in this website is intended to create, and receipt hereof or thereof does not constitute formation of, a lawyer-client relationship. Internet subscribers and online readers should not rely upon this sample legal document or the information contained in this website for any purpose without seeking legal advice from a qualified lawyer practicing in the reader’s province.

The information contained in this website is provided only as general information and may or may not reflect the most current legal developments; accordingly, information on this website is not promised or guaranteed to be correct or complete. MaRS Discovery District expressly disclaims all liability in respect to actions taken or not taken based on any or all the contents of this website.Disclaimer
This sample legal document has been made available by MaRS Discovery District for informational purposes only and does not constitute advertising, a solicitation, or legal advice. Neither the transmission of this sample legal document nor the transmission of any information contained in this website is intended to create, and receipt hereof or thereof does not constitute formation of, a lawyer-client relationship. Internet subscribers and online readers should not rely upon this sample legal document or the information contained in this website for any purpose without seeking legal advice from a qualified lawyer practicing in the reader’s province.

The information contained in this website is provided only as general information and may or may not reflect the most current legal developments; accordingly, information on this website is not promised or guaranteed to be correct or complete. MaRS Discovery District expressly disclaims all liability in respect to actions taken or not taken based on any or all the contents of this website.Disclaimer
This sample legal document has been made available by MaRS Discovery District for informational purposes only and does not constitute advertising, a solicitation, or legal advice. Neither the transmission of this sample legal document nor the transmission of any information contained in this website is intended to create, and receipt hereof or thereof does not constitute formation of, a lawyer-client relationship. Internet subscribers and online readers should not rely upon this sample legal document or the information contained in this website for any purpose without seeking legal advice from a qualified lawyer practicing in the reader’s province.

The information contained in this website is provided only as general information and may or may not reflect the most current legal developments; accordingly, information on this website is not promised or guaranteed to be correct or complete. MaRS Discovery District expressly disclaims all liability in respect to actions taken or not taken based on any or all the contents of this website.Disclaimer
This sample legal document has been made available by MaRS Discovery District for informational purposes only and does not constitute advertising, a solicitation, or legal advice. Neither the transmission of this sample legal document nor the transmission of any information contained in this website is intended to create, and receipt hereof or thereof does not constitute formation of, a lawyer-client relationship. Internet subscribers and online readers should not rely upon this sample legal document or the information contained in this website for any purpose without seeking legal advice from a qualified lawyer practicing in the reader’s province.

The information contained in this website is provided only as general information and may or may not reflect the most current legal developments; accordingly, information on this website is not promised or guaranteed to be correct or complete. MaRS Discovery District expressly disclaims all liability in respect to actions taken or not taken based on any or all the contents of this website.
			</textarea>
		</div>
	<div>
	<div class="col-md-8 col-md-offset-2" style="margin-top:20px">
		<form class="form-inline">
			<label class="checkbox">
				<input id="agree" class="checkbox" type="checkbox" disabled="true" /> I agree.
			</label>
			<button class="btn" id="nextStep" style="float:right" disabled="true"> Next > </button>
		</form>
	</div>
</body>
<script type="text/javascript" src="js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/header.js"></script>
<script>
$(function() {
	$("#licenseArea").scroll(function(){
		var textarea = document.getElementById('licenseArea');
		if (textarea.scrollTop + $("#licenseArea").height() + 20 > textarea.scrollHeight){
			$("#agree").prop("disabled",false);
			if($("#agree").prop("checked") == true){
				$("#nextStep").prop("disabled",false);
			}
			else {
				$("#nextStep").prop("disabled",true);
			}
		}
	});
	
	$("#agree").click(function(){
		//alert($("#agree").prop("checked"));
		if ($(this).prop("checked") == true){
			$("#nextStep").prop("disabled",false);
			//$(this + " input").attr("checked") = "checked";
		} else {
			$("#nextStep").prop("disabled",true);
		}
					

	});

	$("#nextStep").click(function() {
		window.location.href = "register.html";
	});
});
</script>
</html>